package com.iseastar.guojiang.model;

import java.util.ArrayList;

import droid.frame.utils.sqlite.annotation.Column;

/**
 * 订单
 *
 * @author coffee<br>
 *         2015-3-26下午6:16:24
 */
public class OrderBean implements java.io.Serializable {
	/**
	 *
	 */
	private static final long serialVersionUID = 117940667138336823L;

	private String orderId;
	private String senderName;
	private String senderPhone;
	private String address;// 发件人 地址
	private String latitude;// 维度
	private String longitude;// 经度
	private String orderTime;// 时间
	private double distance;// 距离
	/**
	 * 1-2有袋立即、预约<br>
	 * 3-4立即、预约
	 */
	private int isImmediate;// 1为立即，2为预约
	private int isRead;// 是否已读 (1已读, 0未读)
	private long serviceTimeGe;// 起始时间
	private long serviceTimeLe;// 截至时间
	private int status; // 订单状态

	@Column(name = "parcels")
	private ArrayList<PacketBean> packets;
	/**
	 * ORDERED("已下单",1), DISPATHED("已分配",2), ACCEPTED("已确认",3), ARRIVED("已到达",4), QUOTED("已报价",5), <br>
	 * UNPAY("未支付",6), PAYED("已支付",7), PRINT("已打印面单",8), OVERED("已完结",9), CANCELED("已取消",10);
	 */
	private int orderStatus;// 订单状态
	private String paymentWay;// 支付方式，现金支付还是在线支付

	// 柜子相关的数据
	private String parcelImgUrl;
	private String bagCode;

	private String receiverPhone;
	private String equipmentCode;// 设备编码
	private String community; //
	private String courierBoxCode;// 开箱吗
	private String postTime;
	private String checkCode;
	private String category;// 物品类型
	private String parcelId;
	private String password2;//无袋验证码

	/**
	 * 是否是补差价
	 */
	private int isCover;

	public int getIsCover() {
		return isCover;
	}

	public void setIsCover(int isCover) {
		this.isCover = isCover;
	}

	public String getParcelId() {
		return parcelId;
	}

	public void setParcelId(String parcelId) {
		this.parcelId = parcelId;
	}

	public String getCheckCode() {
		return checkCode;
	}

	public void setCheckCode(String checkCode) {
		this.checkCode = checkCode;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	/**
	 * 是否立即上门
	 *
	 * @return
	 */
	@Deprecated
	public boolean IsImmediate() {
		return isImmediate == 1;
	}

	/**
	 * 是否有袋上门
	 *
	 * @return
	 */
	public boolean isHasBag() {
		return isImmediate == 1 || isImmediate == 2;
	}

	public String getId() {
		return orderId;
	}

	// /
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getSenderName() {
		return senderName;
	}

	public void setSenderName(String senderName) {
		this.senderName = senderName;
	}

	public String getSenderPhone() {
		return senderPhone;
	}

	public void setSenderPhone(String senderPhone) {
		this.senderPhone = senderPhone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}

	public double getDistance() {
		return distance;
	}

	public void setDistance(double distance) {
		this.distance = distance;
	}

	public int getIsImmediate() {
		return isImmediate;
	}

	public void setIsImmediate(int isImmediate) {
		this.isImmediate = isImmediate;
	}

	public int getIsRead() {
		return isRead;
	}

	public void setIsRead(int isRead) {
		this.isRead = isRead;
	}

	public long getServiceTimeGe() {
		return serviceTimeGe;
	}

	public void setServiceTimeGe(long serviceTimeGe) {
		this.serviceTimeGe = serviceTimeGe;
	}

	public long getServiceTimeLe() {
		return serviceTimeLe;
	}

	public void setServiceTimeLe(long serviceTimeLe) {
		this.serviceTimeLe = serviceTimeLe;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public ArrayList<PacketBean> getPackets() {
		return packets;
	}

	public void setPackets(ArrayList<PacketBean> packets) {
		this.packets = packets;
	}

	public int getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(int orderStatus) {
		this.orderStatus = orderStatus;
	}

	public String getPaymentWay() {
		return paymentWay;
	}

	public void setPaymentWay(String paymentWay) {
		this.paymentWay = paymentWay;
	}

	public String getParcelImgUrl() {
		return parcelImgUrl;
	}

	public void setParcelImgUrl(String parcelImgUrl) {
		this.parcelImgUrl = parcelImgUrl;
	}

	public String getBagCode() {
		return bagCode;
	}

	public void setBagCode(String bagCode) {
		this.bagCode = bagCode;
	}

	public String getReceiverPhone() {
		return receiverPhone;
	}

	public void setReceiverPhone(String receiverPhone) {
		this.receiverPhone = receiverPhone;
	}

	public String getEquipmentCode() {
		return equipmentCode;
	}

	public void setEquipmentCode(String equipmentCode) {
		this.equipmentCode = equipmentCode;
	}

	public String getCommunity() {
		return community;
	}

	public void setCommunity(String community) {
		this.community = community;
	}

	public String getCourierBoxCode() {
		return courierBoxCode;
	}

	public void setCourierBoxCode(String courierBoxCode) {
		this.courierBoxCode = courierBoxCode;
	}

	public String getPostTime() {
		return postTime;
	}

	public void setPostTime(String postTime) {
		this.postTime = postTime;
	}

	public String getPassword2() {
		return password2;
	}

	public void setPassword2(String password2) {
		this.password2 = password2;
	}
}
